package cn.edu.zafu.bigdata.lwg;

public class Course {
    private String courseName;
    private String courseCode;
    private int credits;

    private String Teacher;

    public Course(String courseName, String courseCode, int credits, String Teacher) {
        this.courseName = courseName;
        this.courseCode = courseCode;
        this.credits = credits;
        this.Teacher = Teacher;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseCode() {
        return courseCode;
    }

    public void setCourseCode(String courseCode) {
        this.courseCode = courseCode;
    }

    public int getCredits() {
        return credits;
    }

    public void setCredits(int credits) {
        this.credits = credits;
    }

    public String getTeacher() {
        return Teacher;
    }

    public void setInstructor(String Teacher) {
        this.Teacher = Teacher;
    }

    public void print() {
        System.out.println("课程名称: " + courseName);
        System.out.println("课程代码: " + courseCode);
        System.out.println("学分: " + credits);
        System.out.println("授课教师: " + Teacher);
    }

    public static void main(String[] args) {
        Course course1 = new Course("JAVA面向对象程序设计", "CS101", 4,"张三");
        Course course2 = new Course("数据结构", "CS202", 3, "李四");

        course1.print();
        System.out.println();
        course2.print();
    }
}